<h1>Join game</h1>
<%form_for @player do |p| %>
	<%= p.label :name %>:
	<% unless @player_id == '0' %>
		<%= p.text_field :name, :disabled=>true%><br />
	<% else %>	
		<%= p.text_field :name %><br />
	<% end %>
	<%= p.label :password %>:
	<% if @player_id == '0' %>
		<%= p.text_field :password %><br />
	<% else %>
		<%= text_field_tag :new_password %><br />
	<% end %>
	<%= p.hidden_field :game_id, :value=>@game_id%>
	<%= p.hidden_field :position, :value=>@position%>
	<%= hidden_field_tag :player_id, @player_id%>
	<%=p.submit "Join"%>
<%end%>
